Skip to content

make reqif and xml import available from GUI#73

Merged
odungern merged 12 commits intodevfrom
#25-Improve-HTML-rendering
Feb 27, 2026
Merged

make reqif and xml import available from GUI#73
odungern merged 12 commits intodevfrom
#25-Improve-HTML-rendering

Conversation

@odungern
Copy link
Contributor

  • plus a major refactoring of file-names and locations.
  • now all code belonging to a plugin is in a single folder.

- importReqIF() works like importJSONLD() and importXML()
- included build-info on homepage
- take App title in header from definitions (originally from package.json)
- all code of a plugin is now in a single folder
- added XML import from GUI
Copilot AI review requested due to automatic review settings February 26, 2026 15:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR exposes ReqIF/XML/JSON-LD import (and some export stubs) through the GUI by restructuring import/export logic into plugin folders and wiring plugin components into the app for dynamic mounting.

Changes:

  • Refactor importers from src/utils/import/** into src/plugins/import/** and update unit tests to use the new importer classes.
  • Add Vuetify-based import components (XML/ReqIF/JSON-LD) plus mount scripts so they can be discovered and mounted via the plugin loader.
  • Update PIG schema/model code (e.g., composed-property naming, constraints), plus assorted metadata/docs updates.

Reviewed changes

Copilot reviewed 37 out of 42 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
tests/unit/import-xml.spec.ts Updates XML importer test to use XmlImporter.import() and renames test descriptions.
tests/unit/import-reqif.spec.ts Updates ReqIF tests to use ReqifImporter.import() and adds recursive test file discovery.
tests/unit/import-jsonld.spec.ts Updates JSON-LD tests to use JsonldImporter.import() and normalizes node imports.
tests/data/XML/11/Alice.pig.xml Renames a test entity id from pig:HierarchyRoot to pig:Root.
tests/data/JSON-LD/11/Alice.pig.jsonld Aligns test entity id/title with the new “Root” naming.
src/utils/schemas/pig/ts/pig-package-constraints.ts Adds TODO notes for subProperty/subClass hierarchy consistency checks.
src/utils/schemas/pig/ts/pig-metaclasses.ts Renames composed-property fields to composes, adds XSD datatype enum, and updates parsing/mapping logic.
src/utils/schemas/pig/jsonld/pig-schemata-jsonld.ts.goodButReplaced Removes a large replaced JSON-LD schema implementation (deleted file).
src/utils/schemas/pig/jsonld/pig-schemata-jsonld.ts Exports SCHEMA_FILES directly for external use.
src/utils/schemas/pig/json/pig-schemata.ts Tightens relationship link cardinality (maxItems: 1).
src/utils/lib/messages.ts Comment formatting changes (no functional change) and defines rspOK singleton used by importers.
src/utils/lib/definitions.ts Bumps pigVersion and retains build metadata via BUILD_INFO.
src/utils/lib/build-info.ts Removes old generated build-info location (deleted file).
src/utils/import/xml/import-package-xml.ts Removes old XML importer (moved to plugin area).
src/utils/import/jsonld/import-package-jsonld.ts Removes old JSON-LD importer (moved to plugin area).
src/utils/import/ReqIF/import-reqif.ts Removes old ReqIF importer (moved to plugin area).
src/plugins/import/xml/mount-import-xml.ts Adds Vue plugin installer for XML import component and exports importer.
src/plugins/import/xml/import-xml.vue.new Adds an alternative XML import UI implementation (currently not wired).
src/plugins/import/xml/import-xml.vue Adds Vuetify-based XML import dialog component for GUI import.
src/plugins/import/xml/import-xml.ts Adds XmlImporter static class implementation in plugin structure.
src/plugins/import/reqif/mount-import-reqif.ts Updates mount script to reference the new ReqIF import component filename.
src/plugins/import/reqif/import-reqif.vue Adds Vuetify-based ReqIF import dialog component.
src/plugins/import/reqif/import-reqif.ts Adds ReqifImporter static class implementation in plugin structure.
src/plugins/import/jsonld/mount-import-jsonld.ts Updates mount script to reference the new JSON-LD import component filename.
src/plugins/import/jsonld/import-jsonld.vue Adds Vuetify-based JSON-LD import dialog component.
src/plugins/import/jsonld/import-jsonld.ts Adds JsonldImporter static class implementation in plugin structure.
src/plugins/export/ttl/mount-export-ttl.ts Updates mount script to reference the new TTL export component filename.
src/plugins/export/ttl/export-ttl.vue Adds a stub Vuetify export dialog for TTL/RDF export.
src/plugins/export/jsonld/mount-export-jsonld.ts Updates mount script to reference the new JSON-LD export component filename.
src/plugins/export/jsonld/export-jsonld.vue Adds a stub Vuetify export dialog for JSON export.
src/plugins/Imports/ReqifImportPlugin.vue Removes older import plugin component in previous folder layout (deleted file).
src/plugins/Imports/JsonImportPlugin.vue Removes older JSON import plugin component in previous folder layout (deleted file).
src/main.ts Changes logging and provides importComponents/exportComponents for dynamic mounting.
src/components/Viewing.vue Minor formatting/log cleanup.
src/components/Interfaces.vue Fixes dynamic component rendering to render component objects and swaps import/export panes.
src/components/Home.vue Adds build-info display but still injects globalComponents.
src/build-info.ts Updates generated build metadata (time/branch/name).
src/App.vue Uses DEF.appName for navigation title and minor formatting.
public/assets/xslt/ReqIF-to-PIG.sef.json Updates the compiled XSLT SEF artifact.
package.json Renames package from CASCaRA_PIG-App to CASCaRA-App.
README.md Updates meta-model link URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

odungern and others added 3 commits February 26, 2026 16:35
Normalize filename before checking extension

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Correct message creation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Clone Rsp before adding response.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
csaenz-psg
csaenz-psg previously approved these changes Feb 26, 2026
- and applied some colors ... to be discussed
@odungern
Copy link
Contributor Author

Chris, as you had previously approved this pull-request, I will bypass another review ..

@odungern odungern merged commit 0ce560c into dev Feb 27, 2026
2 checks passed
@odungern odungern deleted the #25-Improve-HTML-rendering branch February 27, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants